package com.miage.itrading.shared;

import java.util.Date;

class MyTracer {
	public static Date	lastTraceDate;

	public static void outTime(String where) {
		Date now = new Date();
		if (lastTraceDate == null) {
			System.out.println("Debut de tracage : " + where);
		} else {
			System.out.println("Trace time [" + where + "] : "
					+ ((now.getTime() - lastTraceDate.getTime()) / 1000)
					+ "sec");
			lastTraceDate = now;
		}
	}
}